<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">首件质检</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">1，根据终端UniqueID获取终端、工位、作业集合</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>设备UniqueID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Terminal.UniqueID" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="btnGetWork()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">2，根据员工条码获取用户信息以及角色</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>员工Barcode</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="User.UniqueID" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="btnGetUser()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">3，根据员工条码获取物料相关信息</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>物料Barcode</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="BarcodeMaster.Barcode" isempty="false"></TextBox>
    </div>
    <div class="LableDiv" style="width:15%;">
        <Label>作业ID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="WorkID" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="btnGetItemMaster()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">4，提交检验结果信息</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="InputDiv">
        <Btn class="BtnSave" value="提交" ng-click="setFirstQCInfo()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">5，根据物料和作业获取缺陷类型信息</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>物料ItemMasterId</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="BadType.ItemMasterId" isempty="false"></TextBox>
    </div>
    <div class="LableDiv" style="width:15%;">
        <Label>作业ID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="BadType.WorkId" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="btnGetBadType()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">加工扫描</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">开始/完成单品加工扫描芯片</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>物料Barcode</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Process.Barcode" isempty="false"></TextBox>
    </div>
    <div class="LableDiv" style="width:15%;">
        <Label>设备UniqueID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Process.UniqueID" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="扫描" ng-click="onProcess()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">卷制测量</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">根据物料条码和设备标识获取卷制信息</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>物料Barcode</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Wrapper.Barcode" isempty="false"></TextBox>
    </div>
    <div class="LableDiv" style="width:15%;">
        <Label>设备UniqueID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Wrapper.UniqueID" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="getWrapperInfo()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="InputDiv">
        <Btn class="BtnSave" value="确认" ng-click="setWrapperMeasure()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">特裁</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">1, 扫码</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>人Barcode</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Judge.PersionBarcode" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="扫描" ng-click="specialScanPersionCode()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>物Barcode</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Judge.MasterBarcode" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="扫描" ng-click="specialScanMasterCode()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">2, 进行特裁</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>设备UniqueID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Judge.terminalUniqueID" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="特裁" ng-click="doJudge()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">3, 获取不合格物料</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="getBadMasters()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">单品流水</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">根据物料条码获取单品流水</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>物料Barcode</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="ProductFlow.Barcode" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="getProductFlow()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">终端注册</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">1、获取所有有效工位</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="getStation()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">2、注册</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>设备UniqueID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="RegisterTerminal.terminalUniqueID" isempty="false"></TextBox>
    </div>
    <div class="LableDiv" style="width:15%;">
        <Label>工位ID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="RegisterTerminal.WorkLocationID" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="注册" ng-click="registerTerminal()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">3、获取最近一次注册信息</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="getLastRegister()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">条码排序</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">条码排序</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>主档批次</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="BarcodeMaster.MOLotNumber" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取" ng-click="getBarcodeMaster()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:15%;">
    <Label>质量预警看板</Label>
  </div>
  <div class="InputDiv">
    <TextBox value="BarcodeMaster.department" isempty="false"></TextBox>
  </div>
  <div class="InputDiv">
    <Btn class="BtnSave" value="获取" ng-click="getBarcodeMasterByDate()"></Btn>
  </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:15%;">
    <Label>完工日报</Label>
  </div>
  <div class="InputDiv">
    <TextBox value="BarcodeMaster.department" isempty="false"></TextBox>
  </div>
  <div class="InputDiv">
    <Btn class="BtnSave" value="获取" ng-click="queryCompletionDaily()"></Btn>
  </div>
</div>
<div class="DevSeparatedLine" />
<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">看板业务</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="DevDirBig">产生看板需求</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>物料Barcode</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Kanban.Barcode" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="生成" ng-click="createKanban()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>通过终端获取交接区</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="Kanban.uniqueID" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="获取交接区" ng-click="getConnectArea()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>获取上游看板需求</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="user.id" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="查询" ng-click="searchUpKanban()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>获取下游看板需求</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="user.id" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="查询" ng-click="searchDownKanban()"></Btn>
    </div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>上游交接检查</Label>
    </div>
    <!-- <div class="InputDiv"><TextBox value="user.id" isempty="false"></TextBox></div> -->
    <div class="InputDiv">
        <Btn class="BtnSave" value="检查" ng-click="udpatePIckUpQty()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />

<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">包装入库</div>
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="DevDirBig">通过装配条码获取物料信息</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:15%;"><Label>装配Barcode</Label></div>
  <div class="InputDiv"><TextBox value="Assembly.Barcode" isempty="false"></TextBox></div>
  <div class="InputDiv"><Btn class="BtnSave" value="扫描" ng-click="getAssemblyBarcode()"></Btn></div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="DevDirBig">入库</div>
</div>
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:15%;"><Label>包装Barcode</Label></div>
  <div class="InputDiv"><TextBox value="Package.packageBarcode" isempty="false"></TextBox></div>
  <div class="LableDiv" style="width:15%;"><Label>物料Barcode集合</Label></div>
  <div class="InputDiv"><TextBox value="Package.itemBarcode[0]" isempty="false"></TextBox></div>
  <div class="InputDiv"><Btn class="BtnSave" value="入库" ng-click="doDataStocking()"></Btn></div>
</div>
<div class="DevSeparatedLine" />

<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">批次绑定</div>
<div class="row RowSpace" style="margin-bottom:20px;">
    <div class="LableDiv" style="width:15%;">
        <Label>芯片ID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="MOLotNumberBind.BarcodeMaster" isempty="false"></TextBox>
    </div>
    <div class="LableDiv" style="width:15%;">
        <Label>镭射标ID</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="MOLotNumberBind.securityId" isempty="false"></TextBox>
    </div>
    <div class="LableDiv" style="width:15%;">
        <Label>批次</Label>
    </div>
    <div class="InputDiv">
        <TextBox value="MOLotNumberBind.MOLotNumber" isempty="false"></TextBox>
    </div>
    <div class="InputDiv">
        <Btn class="BtnSave" value="批次绑定" ng-click="startBind()"></Btn>
    </div>
</div>
<div class="DevSeparatedLine" />
<div name="UIController" style="text-align:center;font-size:16px;font-weight: bold;">文件上传</div>
<div class="row RowSpace" style="margin-bottom:20px;">

  <div class="container" nv-file-drop="" uploader="uploader" filters="queueLimit, customFilter">
    <div class="row">

      <div class="col-md-3">
        Multiple
        <input type="file" nv-file-select="" uploader="uploader" multiple  /><br/>

        Single
        <input type="file" nv-file-select="" uploader="uploader" />
      </div>

      <div class="col-md-9" style="margin-bottom: 40px">
        <p>Queue length: {{ uploader.queue.length }}</p>
        <table class="table">
          <thead>
          <tr>
            <th width="50%">Name</th>
            <th ng-show="uploader.isHTML5">Size</th>
            <th ng-show="uploader.isHTML5">Progress</th>
            <th>Status</th>
            <th>Actions</th>
          </tr>
          </thead>
          <tbody>
          <tr ng-repeat="item in uploader.queue">
            <td><strong>{{ item.file.name }}</strong></td>
            <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>
            <td ng-show="uploader.isHTML5">
              <div class="progress" style="margin-bottom: 0;">
                <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
              </div>
            </td>
            <td class="text-center">
              <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
              <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
              <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
            </td>
            <td nowrap>
              <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
                <span class="glyphicon glyphicon-upload"></span> Upload
              </button>
            </td>
          </tr>
          </tbody>
        </table>

        <div>
          <div>
            Queue progress:
            <div class="progress" style="">
              <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div>
            </div>
          </div>
          <button type="button" class="btn btn-success btn-s" ng-click="uploader.uploadAll()" ng-disabled="!uploader.getNotUploadedItems().length">
            <span class="glyphicon glyphicon-upload"></span> Upload all
          </button>
          <button type="button" class="btn btn-warning btn-s" ng-click="uploader.cancelAll()" ng-disabled="!uploader.isUploading">
            <span class="glyphicon glyphicon-ban-circle"></span> Cancel all
          </button>
        </div>

      </div>
    </div>
  </div>

</div>
<div class="DevSeparatedLine" />

